package app.beit.finportal.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name="fin_webboard")
@SequenceGenerator(allocationSize=1, name="seqHibernateName", sequenceName="seq_fin_webboard")
public class Webboard extends BaseEntity {

	@Column(name="name", length=500)
	private String name;
	
	@Column(name="content", length=2000)
	private String content;
	
	@Column(name="viewed")
	private Integer viewed;
	
	@Column(name="replied")
	private Integer replied;
	
	@OneToMany(fetch=FetchType.LAZY, mappedBy = "webboard")
	private List<WebboardReply> listWebboardReply;
	
	

	public List<WebboardReply> getListWebboardReply() {
		return listWebboardReply;
	}

	public void setListWebboardReply(List<WebboardReply> listWebboardReply) {
		this.listWebboardReply = listWebboardReply;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getViewed() {
		return viewed;
	}

	public void setViewed(Integer viewed) {
		this.viewed = viewed;
	}

	public Integer getReplied() {
		return replied;
	}

	public void setReplied(Integer replied) {
		this.replied = replied;
	}

}
